<template>
  <div class="box">
    <div class="mask">
      <div class="con">
        <button @click="del">确定</button>
        <button @click="cancel">取消</button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  components: {},
  data() {
    return {};
  },
  methods: {
    cancel() {
      this.$emit("cD",[0,false]);
    },
    del() {
      this.$emit("cD",[1,false]);
    },
  },
};
</script>

<style scoped>
.mask {
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.3);
  position: absolute;
  top: 0;
  left: 0;
}

.mask .con {
  width: 200px;
  height: 100px;
  background-color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

button {
  width: 45px;
  height: 30px;
  background-color: rgb(181, 240, 19);
  outline: none;
  margin: 35px 0 0 35px;
}
</style>
